package com.dreamstations.changshads.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;

import com.dreamstations.changshads.R;

public class Datum_Reading_Frag extends Fragment {
    private static final String TITLE = "在线阅读";
    private static final String TAG = Datum_Reading_Frag.class.getName();

    private GridView gridView;

    public Datum_Reading_Frag() {
        // Required empty public constructor
    }

    public static Datum_Reading_Frag newInstance() {
        Datum_Reading_Frag fragment = new Datum_Reading_Frag();
        Bundle args = new Bundle();
        //设置标题页面
        args.putString("title",TITLE);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View v=inflater.inflate(R.layout.library_reading_header, container, false);
//        gridView= (GridView) v.findViewById(R.id.gridview);
//        List list=new ArrayList<String>();
//        list.add("");
//        list.add("");
//        list.add("");
//        list.add("");
//        list.add("");
//        list.add("");
//        gridView.setAdapter(new CommonAdapter<String>(getContext(),R.layout.book_item,list) {
//            @Override
//            public void convert(ViewHolder holder, String s) {
//
//            }
//        });
        return v;
    }

}
